NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation.

Technical Q&A QTMA04
QuickTime 2.0 and MIDI Conversions

Q Is there a bug in QuickTime's conversion utilities? I am using QuickTime 2.0, the QuickTime PowerPlug, and Apple Multimedia Tuner 2.0 with System 7.5, PowerTalk. I observe the problem when I use StandardGetFilePreview to allow the user to select a QT Movie (the problem manifests itself in any application that can open movies).

This is what happens. When I select a MIDI file and then select Convert... and Save without first going into the options dialog, the MIDI file is imported as a Text Movie. More often than not, I don't even get this far, as my app crashes with a Type-25 system error in TESetText. However, if I select Options from the SFPutFile dialog before selecting Convert and Save (whether I make any changes in the Options dialog or not), the Midi file converts correctly.

I have also seen PICS files do the same thing, unless you go into Options before converting and saving, the PICS files either import incorrectly or the app crashes. Until recently, I never had this problem. Can you tell me what's wrong?

A If the file name has a dot in it (such as MIDIMU.VIS), MoviePlayer assumes that it is a text file, so it tries to use the text importer. You may see the same problem with PICT files that have a .PIC (or similar) postfix.

Until there is a new version of QuickTime available that removes this bug, the only workaround is to write a filter for the StandardFile dialog that removes the extension from the filename on-the-fly.

[May 01 1995]


Developer Documentation | Technical Notes | Development Kits | Sample Code